﻿using System.ComponentModel.DataAnnotations;

namespace MVCBlog.Models
{
    public class CreateCategoryViewModel
    {
        [Required]
        public string Name { get; set; }
    }

    public class EditCategoryViewModel
    {
        public int ID { get; set; }
        
        [Required]
        public string Name { get; set; }

        public EditCategoryViewModel() { }
    }
}